::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #e4e4e5;
}
::-webkit-scrollbar-thumb:hover {
    border-radius: 6px;
    background: #ececed;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.hide {
    display: none;
}

sub {
    vertical-align: sub;
    font-size: smaller;
}

.text-center {
    text-align: center;
}

button {
    --bg-color: #0d6efd;
    --bg-color-hover: #0b5ed7;
    --bg-color-active: #0a58ca;
    --bg-color-disabled: #61a0fe;
    outline: none;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background-color: var(--bg-color);
    color: #fff;
}

button:hover {
    background-color: var(--bg-color-hover);
}

button:active {
    background-color: var(--bg-color-active);
}

button:disabled {
    background-color: var(--bg-color-disabled);
    cursor: not-allowed;
}

button.secondary {
    --bg-color: #6c757d;
    --bg-color-hover: #5c636a;
    --bg-color-active: #545b62;
    --bg-color-disabled: #a0a7af;
}

input[type='text'],
select,
textarea {
    outline: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    background-color: #fff;
    color: #000;
    border: 1px solid #ced4da;
    width: 100px;
}

select {
    cursor: pointer;
}

input:focus,
select:focus {
    border-color: #0d6efd;
}

select:disabled {
    cursor: not-allowed;
    color: #999;
}

textarea {
    resize: none;
    width: 100%;
    height: 200px;
}

input[type='checkbox'] {
    appearance: none;
    width: 14px;
    height: 14px;
    cursor: pointer;
    outline: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

input[type='checkbox']:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

label {
    cursor: pointer;
}

table {
    border-collapse: collapse;
}

td,
th {
    border: 1px solid #eee;
    padding: 4px;
    // white-space: nowrap;
}

.ml-lg {
    margin-left: 32px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 99;
}

.modal-dialog {
    width: 600px;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 20px;
}

.modal-body {
    padding: 16px 0;
}
